"""
@file Senior.py
@author GalaktiK (jacobliu001@qq.com)
@version 1.0
@date 2021-06-02

@copyright Copyright (c) 2021, Published under License GPLv2
"""

PREF = ['co', 'de', 'dis', 'pre', 're', 'un'] # prefixes
SUFF = ['age', 'ful', 'ing', 'less', 'ment'] # suffixes
CC = ['ch', 'ck', 'ph', 'sh', 'th', 'wh', 'wr']
CC1 = {'ch':'C', 'ck':'K',
       'ph':'F', 'sh':'S',
       'th':'T', 'wh':'W',
       'wr':'R'}
CC2 = {'C':'ch', 'K':'ck',
       'F':'ph', 'S':'sh',
       'T':'th', 'W':'wh',
       'R':'wr'}
vowel = ['a', 'e', 'i', 'o', 'u']
s = input()
prefi = ""
suffi = ""
for pre in PREF:
    if s[0:len(pre)] == pre:
        prefi = pre
        break
for suf in SUFF:
    if s[len(s)-len(suf):len(s)] == suf:
        suffi = suf
        break
s1 = s[len(prefi):len(s)-len(suffi)]
sm = s1
# print(s)
reg = list(range(1, len(sm)-1))
for x in CC1:
    sm = sm.replace(x, CC1[x])
for i in reg:
    if i + 1 >= len(sm):
        continue
    if sm[i-1] in vowel and not sm[i] in vowel and sm[i+1] in vowel:
        sm = sm[0:i]+"|"+sm[i:]
        reg.append(len(reg)+1)
reg = list(range(1, len(sm)-2))
for i in reg:
    if i + 1 >= len(sm):
        continue
    if not sm[i] in vowel and not sm[i+1] in vowel and sm[i:i+2].find('|') == -1:
        sm = sm[0:i+1]+"|"+sm[i+1:]
        reg.append(len(reg)+1)
for x in CC2:
    sm = sm.replace(x, CC2[x])
if prefi != "" and suffi != "":
    prefi += "|"
    suffi = "|" + suffi
if prefi != "" and suffi == "":
    prefi += "|"
if prefi == "" and suffi != "":
    suffi = "|" + suffi
ans = prefi + sm + suffi
ans = ans.replace("||", "|")
tot = 0
# print(ans)
for i in range(len(ans)):
    if ans[i] == '|':
        tot += i
        # print(i)
# print(ans)
print(tot, sep="")
